<taglib name="html" />
<include file="$includeFile.public_header" />
<!--  右边内容   -->
<script type="text/javascript">
  var area_type = {$area_info.type|format_int};

  function show_area(area_id) {
    if (area_type > 1) {
        alert("没有下级了");
        return;
    }
    location.href = URL + "/index/parent_id/" + area_id;
  }
  function add_area(area_id) {
    if (area_type > 2) {
        alert("没有下级了");
        return;
    }
    location.href = URL + "/add/parent_id/" + area_id;
  }
</script>
<div class="list_tit">
  <span class="tit_left">您当前的位置：首页 > {$dao_title}管理 ></span>
  <a href="__URL__/add/parent_id/{$Think.get.parent_id|format_int}" class="tit_right">+添加{$dao_title}</a>
</div>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="ul_bg" style="display:none">
  <form action="__URL__/index/position_id/{$Think.get.position_id}" method="get">
    <tr>
      <td width="80">按类别搜索：</td>
      <td width="90">
        <html:select name="listRows" options="pagesize" selected="listRows" />
      </td>
      <td width="110">
        <select class="sele_css" style="width:120px;">广告</select>
      </td>
      <td>&nbsp;</td>
      <td width="35">&nbsp;</td>
      <td width="85">&nbsp;</td>
      <td width="80">关键字搜索：</td>
      <td width="155">
        <input type="text" class="input_css" name="name" value="{$Think.get.name}" />
      </td>
      <td width="<php>if($_GET['name']){ echo 140;}else{echo 76;}</php>
      " >
      <php>if($_GET['name']){</php>
      <a href="__URL__/index/position_id/{$Think.get.position_id}" class="btn_css fr" style="display:block; margin-left:10px; text-align:center; line-height:22px;">撤销搜索</a>
      <php>}</php>
      <input type="submit" value="搜 索" class="btn_css fr" />
    </td>
  </tr>
</form>
</table>
<div class="page_list" >
<div id="result" class="result none"></div>
<html:list id="checkList" style="list_table" name="action" checkbox="true" action="true" datasource="list" pk="area_id"
  show="area_id:地区ID|10%:show_area,name:地区名字|50%:show_area,sort_order:排序,status:状态"
  actionlist="area_id|show_area|查看下级,area_id|add_area|添加下级,area_id|edit|编辑,area_id|del|删除" />
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="ul_bg">
  <tr>
    <td width="40">操作：</td>
    <td width="100">
      <select id="action" class="sele_css" style="width:90px;">
        <option value="">选择操作</option>
        <option value="ajax_delete">删除</option>
      </select>
    </td>
    <td width="70">
      <input type="submit" id="todo" value="执 行" class="btn_css" />
    </td>
    <td>&nbsp;</td>
    <td align="right" style="text-align:right;" class="subpage">{$page}</td>
  </tr>
</table>
</div>
<include file="Public:footer" />